.class public Lcom/instagram/android/service/b;
.super Landroid/content/BroadcastReceiver;
.source "AutoCompleteUserServiceHelper.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 81
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 4
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 85
    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "id"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 86
    invoke-static {}, Lcom/instagram/service/d;->a()Lcom/instagram/service/d;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/instagram/service/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b/e;

    .line 88
    if-eqz v0, :cond_1

    .line 92
    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->x()Lcom/instagram/android/model/b/g;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->x()Lcom/instagram/android/model/b/g;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->B()Lcom/instagram/android/model/b/g;

    move-result-object v2

    if-eq v1, v2, :cond_1

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->x()Lcom/instagram/android/model/b/g;

    move-result-object v1

    sget-object v2, Lcom/instagram/android/model/b/g;->e:Lcom/instagram/android/model/b/g;

    if-eq v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->x()Lcom/instagram/android/model/b/g;

    move-result-object v1

    sget-object v2, Lcom/instagram/android/model/b/g;->d:Lcom/instagram/android/model/b/g;

    if-eq v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->x()Lcom/instagram/android/model/b/g;

    move-result-object v1

    sget-object v2, Lcom/instagram/android/model/b/g;->c:Lcom/instagram/android/model/b/g;

    if-ne v1, v2, :cond_1

    .line 98
    :cond_0
    const/4 v1, 0x0

    .line 99
    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->B()Lcom/instagram/android/model/b/g;

    move-result-object v2

    sget-object v3, Lcom/instagram/android/model/b/g;->d:Lcom/instagram/android/model/b/g;

    if-ne v2, v3, :cond_2

    .line 101
    new-instance v1, Lcom/instagram/android/service/c;

    invoke-direct {v1, p0, v0}, Lcom/instagram/android/service/c;-><init>(Lcom/instagram/android/service/b;Lcom/instagram/android/model/b/e;)V

    move-object v0, v1

    .line 135
    :goto_0
    if-eqz v0, :cond_1

    .line 136
    invoke-static {}, Lcom/instagram/n/c/a;->a()Ljava/util/concurrent/Executor;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    .line 140
    :cond_1
    return-void

    .line 120
    :cond_2
    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->B()Lcom/instagram/android/model/b/g;

    move-result-object v2

    sget-object v3, Lcom/instagram/android/model/b/g;->c:Lcom/instagram/android/model/b/g;

    if-ne v2, v3, :cond_3

    .line 122
    new-instance v1, Lcom/instagram/android/service/d;

    invoke-direct {v1, p0, v0}, Lcom/instagram/android/service/d;-><init>(Lcom/instagram/android/service/b;Lcom/instagram/android/model/b/e;)V

    move-object v0, v1

    goto :goto_0

    :cond_3
    move-object v0, v1

    goto :goto_0
.end method
